package com.ftg.learn.chapter08.homework01.homework05;

/**
 * 小汽车类
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/24 20:22
 */

public class Car extends Auto{

    String kt;
    String cd;

    public Car(int num, String color, int weight, int speed,String kt,String cd) {
        super(num, color, weight, speed);
        this.cd=cd;
        this.kt=kt;
    }

    @Override
    public void jiasu(){
        System.out.println("汽车要加速了");
    }
    @Override
    public void jiansu(){
        System.out.println("汽车要减速了");
    }
}
